package com.haifeng.questionbankcrud;

import com.haifeng.questionbankcrud.dao.impl.TeacherDaoImpl;
import com.haifeng.questionbankcrud.pojo.SingleChoice;
import com.haifeng.questionbankcrud.pojo.Teacher;
import com.haifeng.questionbankcrud.services.SingleChoiceService;
import com.haifeng.questionbankcrud.services.impl.SingleChoiceServiceImpl;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        SingleChoice singleChoice = new SingleChoice();
        singleChoice.setPoint("喜欢");
        SingleChoiceService singleChoiceService = new SingleChoiceServiceImpl();
        List<SingleChoice> singleChoices = singleChoiceService.selectSingleChoice(singleChoice);
        for (SingleChoice choice : singleChoices) {
            System.out.println(choice.toString());
        }
    }
}
